;This file should pass the assmbler without errors.
;need to generte a .ob .ent .ext files.

;check entry before annonce label
		.entry ONE

;storing some label
MAN:		.data 53,-53,+44,0

ONE:		.data 1
TWO:		.data	2,-2
STRING:		.string "I'm a string"

;check extern
		.extern EXT
		.extern ext

;check entry after annonce label
		.entry TWO


;storing the same label withe diffrent case
oNE:		.data 3
two:		.string "why?!?"

;check all the mov command
MOV:		mov #4 ,	EXT 
		mov ONE , 	TWO[ONE]
		mov ONE[TWO], 	TWO[r0]
		mov ONE[r1], 	r6
		mov r1,		r7

;check all the cmp command
CMP:		cmp #4 ,	EXT 
		cmp ONE , 	TWO[ONE]
		cmp ONE[TWO], 	TWO[r0]
		cmp ONE[r1], 	r6
		cmp r1,		#7

;check all the add command
ADD:		add #4 ,	EXT 
		add ONE , 	TWO[ONE]
		add ONE[TWO], 	TWO[r0]
		add ONE[r1], 	r6
		add r1,		r7


;check all the sub command
SUB:		sub #4 ,	EXT 
		sub ONE , 	TWO[ONE]
		sub ONE[TWO], 	TWO[r0]
		sub ONE[r1], 	r6
		sub r1,		r7

;check all the not command
NOT:		not r1

;check all the clr command
CLR:		clr ONE
		clr ONE[TWO]
		clr ONE[r1]
		clr r1
			
		   				
;check all the lea command
LEA:		lea ONE , 	TWO[ONE]
		lea ONE[TWO], 	TWO[r0]
		lea ONE[r1], 	r6

;check all the inc command
INC:		inc ONE
		inc ONE[TWO]
		inc ONE[r1]
		inc r1

;check all the dec command
DEC:		dec ONE
		dec ONE[TWO]
		dec ONE[r1]
		dec r1

;check all the jmp command
JMP:		jmp HLT

;check all the bne command
BNE:		bne HLT

;check all the red command
RED:		red ONE
		red ONE[TWO]
		red ONE[r1]
		red r1

;check all the prn command
PRN:		prn #25
		prn ONE
		prn ONE[TWO]
		prn ONE[r1]
		prn r1

;check all the jsr command
JSR:		jsr HLT

;check all the rts command
RTS:		rts
;check all the hlt command
HLT:		hlt

		
		
